home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / tiff / tools / Makefile.sun < prev    next >
Makefile  |  1992-02-18  |  4KB  |  140 lines

  1. #    $Header: /usr/people/sam/tiff/tools/RCS/Makefile.sun,v 1.21 92/02/19 14:38:15 sam Exp $
  2. #
  3. # TIFF Library Tools
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992 Sam Leffler
  6. # Copyright (c) 1991, 1992 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Stanford and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24. NULL=
  25. IPATH=    -I../libtiff
  26. #
  27. # If you don't want the public domain getopt code, then
  28. # simply null this out and you'll get whatever is in your
  29. # libc (or similar).
  30. #
  31. GETOPT=    getopt.o
  32. #
  33. # Library-wide configuration defines:
  34. #    MMAP_SUPPORT    add support for memory mapping read-only files
  35. #    COLORIMETRY_SUPPORT add support for 6.0 colorimetry tags
  36. #    JPEG_SUPPORT    add support for 6.0 JPEG tags & JPEG algorithms
  37. #    YCBCR_SUPPORT    add support for 6.0 YCbCr tags
  38. #    CMYK_SUPPORT    add support for 6.0 CMYK tags
  39. #
  40. # Note that if you change the library-wide configuration, you'll
  41. # need to manual force a full rebuild. 
  42. #
  43. CONF_LIBRARY=\
  44.     -DUSE_VARARGS=1 \
  45.     -DUSE_PROTOTYPES=0 \
  46.     -DCOLORIMETRY_SUPPORT \
  47.     -DYCBCR_SUPPORT \
  48.     ${NULL}
  49. COPTS=    
  50. CFLAGS=    -g ${COPTS} ${IPATH}
  51. #
  52. LIBTIFF=../libtiff/libtiff.a
  53. LIBS=    ${LIBTIFF}
  54. MACHALL=ras2tiff
  55. OBJS=    \
  56.     fax2tiff.o \
  57.     gif2tiff.o \
  58.     pal2rgb.o \
  59.     ppm2tiff.o \
  60.     rgb2ycbcr.o \
  61.     tiff2bw.o \
  62.     tiff2ps.o \
  63.     tiffcmp.o \
  64.     tiffcp.o \
  65.     tiffdither.o \
  66.     tiffdump.o \
  67.     tiffinfo.o \
  68.     tiffmedian.o \
  69.     tiffsplit.o \
  70.     ras2tiff.o \
  71.     ${GETOPT} \
  72.     ${NULL}
  73. ALL=\
  74.     fax2tiff \
  75.     gif2tiff \
  76.     pal2rgb \
  77.     ppm2tiff \
  78.     rgb2ycbcr \
  79.     tiff2bw \
  80.     tiff2ps \
  81.     tiffcmp \
  82.     tiffcp \
  83.     tiffdither \
  84.     tiffdump \
  85.     tiffinfo \
  86.     tiffmedian \
  87.     tiffsplit \
  88.     ${MACHALL} \
  89.     ${NULL}
  90.  
  91. all:     ${ALL}
  92.  
  93. tiffinfo: tiffinfo.c ${GETOPT} ${LIBTIFF}
  94.     ${CC} -o tiffinfo ${CFLAGS} tiffinfo.c ${GETOPT} ${LIBS}
  95. tiffcmp:tiffcmp.c ${GETOPT} ${LIBTIFF}
  96.     ${CC} -o tiffcmp ${CFLAGS} tiffcmp.c ${GETOPT} ${LIBS}
  97. tiffcp:    tiffcp.c ${LIBTIFF}
  98.     ${CC} -o tiffcp ${CFLAGS} tiffcp.c ${LIBS}
  99. tiffdump: tiffdump.c
  100.     ${CC} -o tiffdump ${CFLAGS} tiffdump.c
  101. tiffmedian: tiffmedian.c ${LIBTIFF}
  102.     ${CC} -o tiffmedian ${CFLAGS} tiffmedian.c ${LIBS}
  103. tiffsplit: tiffsplit.c ${LIBTIFF}
  104.     ${CC} -o tiffsplit ${CFLAGS} tiffsplit.c ${LIBS}
  105. tiff2ps: tiff2ps.c ${LIBTIFF}
  106.     ${CC} -o tiff2ps ${CFLAGS} tiff2ps.c ${LIBS} -lm
  107. # junky stuff...
  108. # convert RGB image to B&W
  109. tiff2bw: tiff2bw.c ${GETOPT} ${LIBTIFF}
  110.     ${CC} -o tiff2bw ${CFLAGS} tiff2bw.c ${GETOPT} ${LIBS}
  111. # convert B&W image to bilevel w/ FS dithering
  112. tiffdither: tiffdither.c ${LIBTIFF}
  113.     ${CC} -o tiffdither ${CFLAGS} tiffdither.c ${LIBS}
  114. # Group 3 FAX file converter
  115. fax2tiff: fax2tiff.c ${GETOPT} ${LIBTIFF}
  116.     ${CC} -o fax2tiff ${CFLAGS} ${CONF_LIBRARY} fax2tiff.c ${GETOPT} ${LIBS}
  117. # GIF converter
  118. gif2tiff: gif2tiff.c ${LIBTIFF}
  119.     ${CC} -o gif2tiff ${CFLAGS} gif2tiff.c ${LIBS} -lm
  120. # PBM converter
  121. ppm2tiff: ppm2tiff.c ${LIBTIFF}
  122.     ${CC} -o ppm2tiff ${CFLAGS} ppm2tiff.c ${LIBS}
  123. # convert Palette image to RGB
  124. pal2rgb: pal2rgb.c ${LIBTIFF}
  125.     ${CC} -o pal2rgb ${CFLAGS} pal2rgb.c ${LIBS}
  126. # convert RGB image to YCbCr
  127. rgb2ycbcr: rgb2ycbcr.c ${GETOPT} ${LIBTIFF}
  128.     ${CC} -o rgb2ycbcr ${CFLAGS} rgb2ycbcr.c ${GETOPT} ${LIBS} -lm
  129. # Sun rasterfile converter
  130. ras2tiff: ras2tiff.c ${LIBTIFF}
  131.     ${CC} -o ras2tiff ${CFLAGS} ras2tiff.c ${LIBS}
  132.  
  133. install: all
  134.  
  135. clean:
  136.     rm -f ${ALL} ${OBJS} core a.out ycbcr
  137.